<%@page import="chase.myrewards.*"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html>
<html>
    <head>
        <title>Your Account Information</title>
        <link rel=stylesheet href="./myrewards.css" type="text/css">
    </head>
    <body>
        <jsp:useBean id="rewardsusage" type="chase.myrewards.beans.RewardsUsageBean" scope="session" />
        <table>
            <tr>
                <th>Used Points</th>
                <th>Date</th>
                <th>Description</th>
            </tr>
        <% for (int i = 0; i < rewardsusage.getSize(); i++){ %>
            <tr>
                <td><%=rewardsusage.getUsedPoints().get(i)%></td>
                <td><%=rewardsusage.getDate().get(i)%></td>
                <td><%=rewardsusage.getDescription().get(i)%></td>
            </tr>
        <% } %>
        </table>
    </body>
</html>